package http.bean.normalbean;

import http.bean.BaseBean;

/**
 * @Author yemao
 * @Email yrmao9893@163.com
 * @Date 2017/5/9
 * @Description 数据请求返回基类，按实际情况定义!
 */

public class BaseEntity<T> extends BaseBean {
    private int code;
    private String msg;
    private T data;

    public boolean isSuccess() {
        return code == 42440;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
